package com.iflytek.universitymanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iflytek.universitymanagement.domain.Reply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface ReplyMapper extends BaseMapper<Reply> {
    @Select("SELECT * FROM replies WHERE comment_id = #{commentId}")
    List<Reply> findRepliesByCommentId(int commentId);
}
